import request from '@/utils/request'

// 查询家政服务列表
export function listHousekeeping(query) {
  return request({
    url: '/recycle/housekeeping/list',
    method: 'get',
    params: query
  })
}

// 查询家政服务详细
export function getHousekeeping(id) {
  return request({
    url: '/recycle/housekeeping/' + id,
    method: 'get'
  })
}

// 新增家政服务
export function addHousekeeping(data) {
  return request({
    url: '/recycle/housekeeping',
    method: 'post',
    data: data
  })
}

// 修改家政服务
export function updateHousekeeping(data) {
  return request({
    url: '/recycle/housekeeping',
    method: 'put',
    data: data
  })
}

// 删除家政服务
export function delHousekeeping(id) {
  return request({
    url: '/recycle/housekeeping/' + id,
    method: 'delete'
  })
}
